import fetch from '@/requests/fetch'
// 订单分页
export const getOrderPage = (data) => fetch('post', '/api/erp/sassOrders/orderPageForSys', data)
// 获取订单详情
export const getOrder = (data) => fetch('get', '/api/erp/sassOrders/getOrderForSys', data)
// 审核提交退款
export const refundSubmit = (data) => fetch('get', '/api/erp/sassOrderRefund/refundSubmit', data)
// 提交退款 /api/erp/sassOrderRefund/applyForSys
export const applySubmit = (data) => fetch('post', '/api/erp/sassOrderRefund/applyForSys', data)
//接单制作
export const pickupProduction = (data) => fetch('get', '/api/erp/sassOrders/pickupProduction', data)
// 通知取餐
export const pickupTakeMeals = (data) => fetch('get', '/api/erp/sassOrders/pickupTakeMeals', data)
// 完成订单
export const pickupFinish = (data) => fetch('get', '/api/erp/sassOrders/finishForSys', data)

//接单制作
export const takeOutProduction = (data) => fetch('get', '/api/erp/sassOrders/takeOutProduction', data)
// 通知送货
export const takeOutDelivery = (data) => fetch('get', '/api/erp/sassOrders/takeOutPending', data)
// 去送货
export const takeOutShipping = (data) => fetch('get', '/api/erp/sassOrders/takeOutShipping', data)
// 配送完成
export const takeOutFinish = (data) => fetch('get', '/api/erp/sassOrders/takeOutFinish', data)

//售后订单
export const getOrderRefund = (data) => fetch('post', '/api/erp/sassOrderRefund/pageForSys', data)
// 售后订单详情
export const getRefundForSys = (data) => fetch('get', '/api/erp/sassOrderRefund/getRefundForSys', data)
// 统计
export const statistics = (data) => fetch('get', '/api/erp/sassOrders/statistics', data)
//  /api/erp/sassOrderRefund/statistics
export const statisticsRefund = (data) => fetch('get', '/api/erp/sassOrderRefund/statistics', data)
